{% extends 'users/profile-base.html' %} {% load static %} {% load tasks_tags %}

{% block title %}
    Добавить цель
{% endblock title %}

{% block right_frame %}

<div class="profile-frame__right">
    <div class="task_add-frame glass">
        <a class="backBtn" href="{% url 'task:main' %}">
            <img src="{% static 'icons/back_btn.png' %}" alt=""/>
        </a>
        <div class="task_add-frame__card">
            
            <form method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="frameData row">
                    <label  class="inputArea" for="id_title" class="form-label">Название:</label>
                    {{ form.title }}
                </div>
                <div class="frameData row">
                    <label class="inputArea" for="id_description" class="form-label">Описание:</label>
                    {{ form.description }}
                </div>
                <div class="frameData row">
                    <label class="inputArea" for="start_img" class="form-label">Изображение:</label>
                    {{ form.start_img }}
                </div>
                <div class="frameData row">
                    <label class="inputArea" for="remind_by_date" class="form-label">Напомнить:</label>
                    <input type="date" name="remind_by_date" id="id_remind_by_date" required="false">
                </div>
                <button class="saveBtn" type="submit">Сохранить</button>
            </form>
        </div>
    </div>
</div>
{% endblock right_frame %}
